package bjut.zrpc.core.optimization.utils;

/**
 * @Author: zhuzhiming
 * @Date: 2022/7/2 23:16
 */
public class ClassUtil {

    public static boolean isCglibProxyClass(Class<?> clazz){

        return (clazz != null && isCglibProxyClassName(clazz.getName()));

    }

    private static boolean isCglibProxyClassName(String clazzName) {

        return clazzName != null && clazzName.contains("$$");

    }


}
